<?php

require_once('../Simpletest/unit_tester.php');
require_once('../Simpletest/reporter.php');
require_once('../Simpletest/mock_objects.php');

require_once('Classes/FileHandler.php');

$test = &new GroupTest('All tests');

foreach( FileHandler::GetFileListingFromDirectory( 'Tests', '/^Test_/' ) as $sTestFile ) {
	$test->addTestFile( $sTestFile );
}

// XML Objects
//$test->addTestFile('Tests/Test_ObjectArrayIterator.php');
//$test->addTestFile('Tests/Test_XmlElement.php');
//$test->addTestFile('Tests/Test_XmlDocument.php');
//$test->addTestFile('Tests/Test_XmlParser.php');

// Filters

// TODO: Add test for the Filtration
//$test->addTestFile('Tests/Test_Filter_TableStartsWith.php');
//$test->addTestFile('Tests/Test_Filter_TableEndsWith.php');
// TODO: Add test for Matches regex filter
// TODO: Add test for Table references filter

// Filter Gates
//$test->addTestFile('Tests/Test_Filter_And.php');
//$test->addTestFile('Tests/Test_Filter_Or.php');
//$test->addTestFile('Tests/Test_Filter_Not.php');

$test->run(new HtmlReporter());

?>
